package com.von.exceptions;

import com.von.enums.ErrorEnum;

/**
 * @ Author     ：pengzhaofeng
 * @ Date       ：Created in 9:52 2019/4/13 0013
 * @ Description：
 * @ Modified By：
 * @Version:
 **/
public class BusinessRuntimeException extends RuntimeException {
    /**
     * 结果码枚举
     */
    private ErrorEnum errorEnum;

    public BusinessRuntimeException(ErrorEnum errorEnum) {
        super(errorEnum.getError());
        this.errorEnum = errorEnum;
    }

    public ErrorEnum getErrorEnum() {
        return errorEnum;
    }
}

